package com.starlight.easybuyprictice.mapper;

import com.starlight.easybuyprictice.entity.MsGoods;
import com.starlight.easybuyprictice.entity.MsMessage;

import java.util.List;

public interface MsGoodsMapper {
    int deleteByPrimaryKey(Integer goodsId);

    int insert(MsGoods record);

    int insertSelective(MsGoods record);

    MsGoods selectByPrimaryKey(Integer goodsId);

    int updateByPrimaryKeySelective(MsGoods record);

    int updateByPrimaryKey(MsGoods record);

    List<MsGoods> selectAllGoods();

    List<MsGoods> selectGoodsRandom(int count);

    List<MsGoods> selectSameCatGoods(Integer catId);

    int selectLastInsertId();

}